<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Dashboard.mxml</title>
<link rel="stylesheet" type="text/css" href="../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
<span class="MXMLComment">&lt;!--</span><span class="MXMLComment">
  转移states 的工作用GUI 比较好 ， 不会出错
</span><span class="MXMLComment">--&gt;</span>

<span class="MXMLComponent_Tag">&lt;mx:Application</span><span class="MXMLDefault_Text"> xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">horizontal</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">810</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>

    <span class="MXMLComponent_Tag">&lt;mx:ApplicationControlBar</span><span class="MXMLDefault_Text"> dock=&quot;</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">All</span><span class="MXMLDefault_Text">&quot;
            click=&quot;</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">currentState</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&apos;&apos;</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Sales</span><span class="MXMLDefault_Text">&quot;
            click=&quot;</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">currentState</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&apos;fullSales&apos;</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Categories</span><span class="MXMLDefault_Text">&quot;
            click=&quot;</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">currentState</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&apos;fullType&apos;</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Comparison</span><span class="MXMLDefault_Text">&quot;
            click=&quot;</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">currentState</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&apos;fullComp&apos;</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Spacer</span><span class="MXMLDefault_Text"> width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> text=&quot;</span><span class="MXMLString">Start Date</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:DateField</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">startDate</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        
        <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> text=&quot;</span><span class="MXMLString">End Date</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:DateField</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">endDate</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        
        <span class="MXMLComponent_Tag">&lt;mx:RadioButtonGroup</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">grossOrNetGroup</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        
        <span class="MXMLComponent_Tag">&lt;mx:RadioButton</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">gross</span><span class="MXMLDefault_Text">&quot;
            groupName=&quot;</span><span class="MXMLString">grossOrNetGroup</span><span class="MXMLDefault_Text">&quot;
            label=&quot;</span><span class="MXMLString">Gross Sales</span><span class="MXMLDefault_Text">&quot;
            data=&quot;</span><span class="MXMLString">GROSS</span><span class="MXMLDefault_Text">&quot;
            selected=&quot;</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:RadioButton</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">net</span><span class="MXMLDefault_Text">&quot;
            groupName=&quot;</span><span class="MXMLString">grossOrNetGroup</span><span class="MXMLDefault_Text">&quot;
            label=&quot;</span><span class="MXMLString">Net Sales</span><span class="MXMLDefault_Text">&quot;
            data=&quot;</span><span class="MXMLString">NET</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:ApplicationControlBar&gt;</span>


    <span class="MXMLComponent_Tag">&lt;mx:states&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:State</span><span class="MXMLDefault_Text"> name=&quot;</span><span class="MXMLString">fullSales</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">rightCharts</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">width</span><span class="MXMLDefault_Text">&quot; value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">rightCharts</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">height</span><span class="MXMLDefault_Text">&quot; value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:State&gt;</span>

        <span class="MXMLComponent_Tag">&lt;mx:State</span><span class="MXMLDefault_Text"> name=&quot;</span><span class="MXMLString">fullType</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">sales</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">width</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">sales</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">height</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">comp</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">width</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">comp</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">height</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:State&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:State</span><span class="MXMLDefault_Text"> name=&quot;</span><span class="MXMLString">fullComp</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">sales</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">width</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">sales</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">height</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">type</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">width</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">type</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                name=&quot;</span><span class="MXMLString">height</span><span class="MXMLDefault_Text">&quot;
                value=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:State&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:states&gt;</span>

    <span class="MXMLComponent_Tag">&lt;mx:Panel</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">sales</span><span class="MXMLDefault_Text">&quot;
        width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;
        title=&quot;</span><span class="MXMLString">Sales Chart</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:ControlBar&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:ControlBar&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:Panel&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:VBox</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">rightCharts</span><span class="MXMLDefault_Text">&quot;
        width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Panel</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">type</span><span class="MXMLDefault_Text">&quot;
            width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;
            title=&quot;</span><span class="MXMLString">Category Chart</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:ControlBar&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:ControlBar&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:Panel&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Panel</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">comp</span><span class="MXMLDefault_Text">&quot;
            width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;
            title=&quot;</span><span class="MXMLString">Comparison Chart</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:ControlBar&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:ControlBar&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:Panel&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:VBox&gt;</span>
<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
</html>
